<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/common/topBegin.jsp"%>
 <script type="text/javascript" src="${ctx}/js/jquery-1.7.1.min.js"></script>
 <script type="text/javascript" src="${ctx}/js/jquery.jqprint-0.3.js"></script>
</head>
<body>
	<div  id="table_form_div" class="table_form1">
		<table class="table-form" width="100%">
			<tbody>
				<tr>
					<td style="height:25px;"colspan="7"><span style="padding-left:10px;"]><img  src="${ctx}/images/hailiang.png" style="height:20px;"/></span>
					<span style="font-size:16px;folat:left;clear:both;">海梁信息科技电子单</span></td>
				</tr>
				<tr>
					<td colspan="7"  class="table-td" style="font-size:20px;text-align:center">托运方基本信息</td>
				</tr>
				<tr>
					<td  colspan="7"  class="table-td" style="text-align:right;padding-right:45px;height:26px;font-size:16px;">
						日期:<fmt:formatDate value="${entity.shipTime}" pattern="yyyy-MM-dd"/>
					</td>
				</tr>
				
				<tr>
					<td  width="18%" class="table-th" style="height:26px;font-size:16px;" >托运方</td>
					<td  class="table-td" colspan="2" style="height:26px;font-size:16px;" width="25%">${entity.shipper.company.name }</td>
					<td  colspan="4" class="table-td" rowspan="7" style="text-align:center;">
						<img src="<c:if test='${not empty entity.shipOrderGoods[0].goods.safetyCard.path}'>${ctx}/upload/${entity.shipOrderGoods[0].goods.safetyCard.path}</c:if>
	         <c:if test='${empty entity.shipOrderGoods[0].goods.safetyCard.path}'>${ctx}/images/organ/nophoto.gif </c:if>" id="img_photo" style=" width: auto; height: 480px;"><br>
					</td>
				</tr>
				<tr>
					<td  style="height:26px;font-size:16px;"  width="18%" class="table-th">联系人</td>
					<td style="height:26px;font-size:16px;"  class="table-td" colspan="2" width="25%">${entity.shipper.contractor }</td>
				</tr>
				<tr>
					<td  style="height:26px;font-size:16px;"   width="18%" class="table-th">联系人身份证</td>
					<td style="height:26px;font-size:16px;"  class="table-td" colspan="2" width="25%">${entity.shipper.contractorIdno }</td>
				</tr>
				<tr>
					<td  style="height:26px;font-size:16px;"   width="18%" class="table-th">联系人手机</td>
					<td style="height:26px;font-size:16px;"  class="table-td" colspan="2" width="25%">${entity.shipper.contractPhone }</td>
				</tr>
				<tr>
					<td  style="height:26px;font-size:16px;"   width="18%" class="table-th">办公室电话</td>
					<td style="height:26px;font-size:16px;"  class="table-td" colspan="2" width="25%">${entity.shipper.officePhone}</td>
				</tr>
				<tr>
					<td   style="height:26px;font-size:16px;"  width="18%" class="table-th">货物名称</td>
					<td style="height:26px;font-size:16px;"  class="table-td" colspan="2" width="25%" >
						<c:forEach var="item" items="${entity.shipOrderGoods}">
							${item.goods.name } &nbsp;
						</c:forEach>
					</td>
				</tr>
				<tr>
					<td  style="height:26px;font-size:16px;"    width="18%" class="table-th">货物数量</td>
					<td style="height:26px;font-size:16px;"  class="table-td"  colspan="2" width="25%">
						<c:forEach var="item" items="${entity.shipOrderGoods}">
							<c:if test="${not empty item.shipWeight }">
							${item.shipWeight } Kg &nbsp;
							</c:if>
							<c:if test="${not empty item.shipVolume }">
								${item.shipVolume } M³  &nbsp;
							</c:if>
						</c:forEach>
					</td>
				</tr>
				<tr>
					<td    style="height:26px;font-size:16px;"  width="18%" class="table-th">托运地址</td>
					<td style="height:26px;font-size:16px;"  class="table-td" colspan="6">
						 ${entity.shipper.address}
					</td>
				</tr>
				<%-- <tr>
					<td   style="height:26px;font-size:16px;"   width="18%" class="table-th">开户银行</td>
					<td  style="height:26px;font-size:16px;"  class="table-td" colspan="2" width="25%">${entity.shipper.bankAccount }</td>
					<td  style="height:26px;font-size:16px;"  width="10%" class="table-th">开户户主</td>
					<td style="height:26px;font-size:16px;"  class="table-td" width="20%">${entity.shipper.accountName}</td>
					<td style="height:26px;font-size:16px;"   class="table-th">开户账号</td>
					<td  style="height:26px;font-size:16px;"  class="table-td" width="25%">
						 ${entity.shipper.accountNum }
					</td>
				</tr> --%>
				<tr  >
					<td  style="height:26px;font-size:16px;"  rowspan="2"  class="table-th" width="18%">备注</td>
					<td style="height:26px;font-size:16px;"   rowspan="2"  class="table-td" colspan="4">${entity.shipper.remark }</td>
					<td  style="height:26px;font-size:16px;text-align:center;"  colspan="2"  class="table-td" >托运方签名</td>
				</tr>
				<tr>
					<td  colspan="2"  class="table-td"  style="height:26px;font-size:16px;text-align:center;"></td>
				</tr>
			</tbody>
		</table>
	</div>
  	</body>
  </html>
